<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>封装日志打印</title>
</head>
<body>
    <script type="module">
        import LogUtils from './logUtils.js';
        let json = {
            name:'test',
            sex:'男'
        }
        let arr = [1,12,33]

        LogUtils.type('log').text(arr).options({
            size:'30px'
        }).cout();

        LogUtils.log(json, {
            color:'#829222',
            size:'10',
            suffix:new Date().toLocaleString()
        });

        LogUtils.error(document, {
            suffix:'11'
        });

        LogUtils.error('xxxx', {});

        LogUtils.log('xxxx', {
            color:'#a2d41e',
            background:'#e08a09',
            size:'20px'
        });

        LogUtils.dir(document);
        
    </script>
</body>
</html>